home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 November: Tool Chest / Dev.CD Nov 98 TC.toast / Tool Chest / Development Kits / MPW etc. / MPW-GM / MPW / Examples / CExamples / Sample.make < prev    next >
Encoding:
Text File  |  1995-09-21  |  2.0 KB  |  66 lines  |  [TEXT/MPS ]

  1. #
  2. #    Apple Macintosh Developer Technical Support
  3. #
  4. #    MultiFinder-Aware Simple Sample Application
  5. #
  6. #    Sample
  7. #
  8. #    Sample.make    -    Make Source
  9. #
  10. #    Copyright © 1989, 1991, 1994-1995 Apple Computer, Inc.
  11. #    All rights reserved.
  12. #
  13. #    Versions:    
  14. #                1.00                08/88
  15. #                1.01                11/88
  16. #                1.02                04/89
  17. #                1.03                06/89
  18. #                1.04                04/91   Updated for MPW 3.2
  19. #                1.05                03/94    Updated for Universal Interfaces
  20. #
  21. #    Components:
  22. #                Sample.c            Feb.  1, 1990
  23. #                Sample.r            Feb.  1, 1990
  24. #                Sample.h            Feb.  1, 1990
  25. #                Sample.make            Feb.  1, 1990
  26. #
  27. #    Sample is an example application that demonstrates how to
  28. #    initialize the commonly used toolbox managers, operate 
  29. #    successfully under MultiFinder, handle desk accessories, 
  30. #    and create, grow, and zoom windows.
  31. #
  32. #    It does not by any means demonstrate all the techniques 
  33. #    you need for a large application. In particular, Sample 
  34. #    does not cover exception handling, multiple windows/documents, 
  35. #    sophisticated memory management, printing, or undo. All of 
  36. #    these are vital parts of a normal full-sized application.
  37. #
  38. #    This application is an example of the form of a Macintosh 
  39. #    application; it is NOT a template. It is NOT intended to be 
  40. #    used as a foundation for the next world-class, best-selling, 
  41. #    600K application. A stick figure drawing of the human body may 
  42. #    be a good example of the form for a painting, but that does not 
  43. #    mean it should be used as the basis for the next Mona Lisa.
  44. #
  45. #    We recommend that you review this program or TESample before 
  46. #    beginning a new application.
  47. #
  48. #     You can define {SymOptions} as "-sym on" or "-sym off" for use with SADE
  49. #     We also recommend requiring prototypes for all functions
  50. COptions = -r {SymOptions} -D OLDROUTINELOCATIONS=0
  51.                             
  52. CObjs    = Sample.c.o ∂
  53.         "{Libraries}"MacRuntime.o ∂
  54.         "{Libraries}"Interface.o
  55.         
  56. Sample        ƒƒ {CObjs} Sample.make
  57.     Link -o {Targ} {CObjs} {SymOptions}
  58.  
  59. Sample        ƒƒ    Sample.r Sample.h Sample.make
  60.     Rez -rd -o {Targ} Sample.r -append
  61.  
  62. Sample        ƒƒ    Sample.c Sample.r Sample.h Sample.make
  63.     SetFile {Targ} -t APPL -c 'MOOS' -a B
  64.  
  65. Sample.c.o    ƒ    Sample.h
  66.